﻿param($rootPath, $toolsPath, $package, $project)

$dllPath = Join-Path $toolsPath Caramel.Entities.Scaffolding.dll

if (Test-Path $dllPath) {
	# Enable shadow copying so the package can be uninstalled/upgraded later
	[System.AppDomain]::CurrentDomain.SetShadowCopyFiles()

	# Import the module into the local scope where init.ps1 runs...
	Import-Module $dllPath
} else {
	Write-Warning ("Could not find Caramel.Entities.Scaffolding module. Looked for: " + $dllPath)
}